<HTML
><HEAD
><TITLE
>GrServiceSelect()</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="Nano-X Library API"
HREF="index.html"><LINK
REL="UP"
TITLE="Nano-X Function Reference"
HREF="ch2.html"><LINK
REL="PREVIOUS"
TITLE="GrSelectEvents()"
HREF="nxapi_GrSelectEvents.html"><LINK
REL="NEXT"
TITLE="GrSetBackgroundPixmap()"
HREF="nxapi_GrSetBackgroundPixmap.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nano-X Library API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="nxapi_GrSelectEvents.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nxapi_GrSetBackgroundPixmap.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="NXAPI.GRSERVICESELECT"
><TT
CLASS="FUNCTION"
>GrServiceSelect()</TT
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6604"
></A
><H2
>Name</H2
><TT
CLASS="FUNCTION"
>GrServiceSelect()</TT
>&nbsp;--&nbsp;Dispatch nano-X events</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6608"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6609"
></A
><P
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>  void                   <B
CLASS="FSFUNC"
>  GrServiceSelect       </B
></CODE
>( void *             <VAR
CLASS="PDPARAM"
> rfdset                </VAR
>,  GR_FNCALLBACKEVENT <VAR
CLASS="PDPARAM"
> fncb                  </VAR
>);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6617"
></A
><H2
>Description</H2
><P
>    This function is used by 
    <A
HREF="nxapi_GrMainLoop.html"
><TT
CLASS="FUNCTION"
>GrMainLoop()</TT
></A
>
    to dispatch events to its event callback function. You can use
    this function if you intend to roll your own event dispatcher
    rather than to use <TT
CLASS="FUNCTION"
>GrMainLoop()</TT
>.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6623"
></A
><H2
>Parameters</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN6625"
></A
><P
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Type</TH
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Name</TH
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><SPAN
CLASS="TYPE"
>void*</SPAN
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>rfdset</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>A pointer to the file descriptor set that select
        received. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_FNCALLBACKEVENT.html"
>        <SPAN
CLASS="TYPE"
>GR_FNCALLBACKEVENT</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>fncb</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>A pointer to the event callback function. This
        callback function will be called each time an event enters
        the nano-X event queue.</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6649"
></A
><H2
>See Also</H2
><P
>      <A
HREF="nxstruct_GR_FNCALLBACKEVENT.html"
>            <SPAN
CLASS="STRUCTNAME"
>GR_FNCALLBACKEVENT</SPAN
></A
>, 
      <A
HREF="nxapi_GrPrepareSelect.html"
>            <TT
CLASS="FUNCTION"
>GrPrepareSelect()</TT
></A
>, 
      <A
HREF="nxapi_GrMainLoop.html"
>            <TT
CLASS="FUNCTION"
>GrMainLoop()</TT
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="nxapi_GrSelectEvents.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nxapi_GrSetBackgroundPixmap.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrSelectEvents()</TT
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ch2.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrSetBackgroundPixmap()</TT
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>